{% extends 'base.html' %}

{% block contents %}
<p>Category[{{ action }}]</p>

{% ifequal action 'get' %}
<p>User: {{ instance.user }}</p>
<p>Name: {{ instance.name }}</p>
<p>order: {{ instance.order }}</p>
<p>createdDatetime: {{ instance.createdDatetime }}</p>
{% endifequal %}

{% ifnotequal action 'get' %}
<form action="/category/{{ action }}/{{ object_id }}" method="POST">
{{ cform.as_p }}
<input type="submit" value="Submit" />
</form>
{% endifnotequal %}

{% endblock %}
